package com.adong.dao;

import com.adong.pojo.Book;

import java.sql.Connection;
import java.util.List;

/**
 * @author adong
 */
public interface BookDao {
    int addBook(Book book);

    int deleteBookById(Integer id);

    int updateBook(Book book);

    Book queryBookById(Integer bookId);

    List<Book> queryBooks();

    Integer queryForPageTotalCountByPrice(int min, int max);

    List<Book> queryForPageItemsByPrice(int begin, int pageSize, int min, int max);
}
